package com._9xcloud.leaverequest.domain;

import org.springframework.security.core.GrantedAuthority;

/**
 * Created by Administrator on 2015/5/21.
 */
public class UserRole implements GrantedAuthority {

    private String roleName;

    public UserRole(String roleName) {
        this.roleName = roleName;
    }

    public String getAuthority() {
        return roleName;
    }

    @Override
    public String toString() {
        return "UserRole{" +
                "roleName='" + roleName + '\'' +
                '}';
    }
}
